package com.test.monitor;

import java.io.File;

import org.junit.Test;

/**
 ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** **
 * Description: 
 * Author: Heller (HellerSong@outlook.com)
 * CreationTime: Apr 11, 2015
 ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** **
 **/
public class UnitTestRun {

    @Test
    public void test_daemon_thread_listening()
    {
        FileMonitor monitor = new FileMonitor(1000);
        monitor.addFile(new File("D:/1.txt"));
        monitor.addListener(new FileChangedListener());
        while(true)
            ;
    }
}
